<?php
//自定义路由
use think\facade\Route;

// api子域名路由指定
Route::domain('xm.api.v6sy.com',function () {
//Route::domain('csapi.xmgame.com',function () {
    Route::miss(function() {
        return '众里寻他千百度，蓦然回首那人却在灯火阑珊处1~';
    });

    /** 和平精英路由配置 **/
    Route::group('peace', function () {
        Route::post('list', 'api.Peace/record');
        Route::post('detail', 'api.Peace/recordInfo');
        Route::post('collect', 'api.Peace/collect');
        Route::post('like', 'api.Peace/like');
        Route::post('record', 'api.Peace/collectList');
    })->allowCrossDomain();


    /** 穿越火线路由配置 **/
    Route::group('fire', function () {
        Route::post('list', 'api.Fire/record');
        Route::post('detail', 'api.Fire/recordInfo');
        Route::post('collect', 'api.Fire/collect');
        Route::post('like', 'api.Fire/like');
        Route::post('record', 'api.Fire/collectList');
    })->allowCrossDomain();

    /** 使命召唤路由配置 **/
    Route::group('duty', function () {
        Route::post('list', 'api.Duty/record');
        Route::post('detail', 'api.Duty/recordInfo');
        Route::post('collect', 'api.Duty/collect');
        Route::post('like', 'api.Duty/like');
        Route::post('record', 'api.Duty/collectList');
    })->allowCrossDomain();


    /** 暗区突围路由配置 **/
    Route::group('dark', function () {
        Route::post('list', 'api.Dark/record');
        Route::post('detail', 'api.Dark/recordInfo');
        Route::post('collect', 'api.Dark/collect');
        Route::post('like', 'api.Dark/like');
        Route::post('record', 'api.Dark/collectList');
    })->allowCrossDomain();


    /** 暗区突围路由配置 **/
    Route::group('dawn', function () {
        Route::post('list', 'api.Dawn/record');
        Route::post('detail', 'api.Dawn/recordInfo');
        Route::post('collect', 'api.Dawn/collect');
        Route::post('like', 'api.Dawn/like');
        Route::post('record', 'api.Dawn/collectList');
    })->allowCrossDomain();


    /** 原神路由配置 **/
    Route::group('genshin', function () {
        Route::post('parse', 'api.Genshin/parse');
        Route::post('url', 'api.Genshin/targetUrl');
        Route::post('history', 'api.Genshin/history');
        Route::post('role', 'api.Genshin/roleList');
        Route::post('tag', 'api.Genshin/tagList');
        Route::post('teamFilter', 'api.Genshin/teamFilter');
        Route::post('team', 'api.Genshin/teamList');
        Route::post('teamDetail', 'api.Genshin/teamDetail');
        Route::post('level', 'api.Genshin/roleLevel');
        Route::post('detail', 'api.Genshin/roleDetail');
        Route::post('collect', 'api.Genshin/collect');
        Route::post('like', 'api.Genshin/like');
        Route::post('collectList', 'api.Genshin/collectList');
        Route::post('publishList', 'api.Genshin/publishList');
        Route::post('delete', 'api.Genshin/delete');
    })->allowCrossDomain();


    /** 和平精英路由配置 **/
    Route::group('yys', function () {
        Route::post('list', 'api.Yys/list');
        Route::post('detail', 'api.Yys/detail');
    })->allowCrossDomain();


    /** 哈利波特路由配置 **/
    Route::group('potter', function () {
        Route::post('list', 'api.Potter/list');
        Route::post('guide', 'api.Potter/tagList');
    })->allowCrossDomain();

    /** 迷你世界路由配置 **/
    Route::group('mini', function () {
        Route::post("type", 'api.Mini/type');
        Route::post("list", 'api.Mini/list');
        Route::post("detail", 'api.Mini/detail');
    })->allowCrossDomain();


    /** 我的世界路由配置 **/
    Route::group('world', function () {
        Route::post("category", 'api.World/category');
        Route::post("list", 'api.World/list');
        Route::post("detail", 'api.World/detail');
    })->allowCrossDomain();

    /** 我的世界路由配置 **/
    Route::group('sky', function () {
        Route::post("category", 'api.Sky/tagList');
        Route::post("list", 'api.Sky/list');
        Route::post("getImages", 'api.Sky/getImages');
        Route::post("detail", 'api.Sky/detail');
        Route::post("calendar", 'api.Sky/calendar');
        Route::post("season", 'api.Sky/season');
        Route::post("strategy", 'api.Sky/strategy');
        Route::post("candle", 'api.Sky/candle');
        Route::post("good", 'api.Sky/good');
        Route::post("guide", 'api.Sky/guide');
    })->allowCrossDomain();


});
